@import "reset";
@import "mixin";

.container {
    width: 1240px;
    margin: 0 auto;
}

//头部
header {
    position: fixed;
    width: 1240px;
    height: 80px;
    left: 50%;
    transform: translate(-50%, 0);
    height: 80px;
    z-index: 99999;

    .logo {
        float: left;
        width: 127px;
        height: 25px;
        margin-top: 27.5px;
    }

    ul {
        float: left;
        width: 920px;
        height: 80px;
        margin-left: 190px;

        &.showMenu {
            li {
                a {
                    color: #aaa;
                }
            }
        }

        li {
            width: 70px;
            height: 80px;
            line-height: 80px;
            float: left;

            a {
                display: inline-block;
                width: 100%;
                height: 100%;
                text-align: center;
                color: #fff;

                &:hover {
                    color: @caidan;
                }
            }

            &.search {
                position: relative;
                width: 170px;

                input {
                    display: inline-block;
                    width: 170px;
                    height: 30px;
                    border-radius: 30px;
                    color: #333;
                    padding-left: 10px;
                }

                i {
                    position: absolute;
                    top: 0;
                    right: 8px;
                    font-size: 20px;
                    cursor: pointer;
                }
            }

            &.my {
                float: right;
                text-align: center;
                width: 35px;
                cursor: pointer;

                i {

                    font-size: 25px;
                    color: #fff;
                }
            }

            &.cart {
                float: right;
                text-align: center;
                width: 35px;
                cursor: pointer;

                span {
                    position: relative;
                    font-size: 25px;
                    color: #fff;

                    .xiao {
                        position: absolute;
                        top: -9px;
                        right: -6px;
                        width: 20px;
                        height: 20px;
                        line-height: 20px;
                        font-size: 10px;
                        border-radius: 50%;
                        background-color: red;
                    }
                }
            }
        }
    }
}

//菜单
.menu {
    position: absolute;
    top: 0;
    z-index: 9999;
    display: none;
    left: 50%;
    transform: translate(-50%, 0);
    height: 275px;
    width: 100%;
    background-color: #fff;

    ul {
        display: flex;
        align-items: center;
        margin-top: 20px;
        height: 100%;

        &.app {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, 0);
            margin-top: 20px;
            height: 100%;

            li {
                a {
                    display: block;
                    width: 100%;
                    height: 100%;

                    img {
                        display: block;
                        width: 100%;
                        height: 205px;
                        margin: 0 auto;
                    }
                }
            }
        }

        li {
            flex: 1;

            a {
                display: block;
                width: 100%;
                height: 100%;

                img {
                    display: block;
                    height: 125px;
                    margin: 0 auto;

                }

                h4 {
                    text-align: center;
                }

                div {
                    text-align: center;
                }
            }
        }
    }
}

//轮播图
.swiper {
    .swiper-pagination-bullet {
        background-color: #fff;
        opacity: 0.9;
    }

    .swiper-pagination-bullet-active {
        background: transparent;
        border-radius: 50%;
        border: 1px solid #fff;
        width: 10px;
        height: 10px;
    }
}

//主推产品
.mainicon {
    background-color: #fff;
    overflow: hidden;

    .container {
        a {
            float: left;
            width: 25%;
            padding: 50px 0;

            img {
                width: 100%;
                margin-bottom: 15px;
            }

            h2 {
                text-align: center;
                color: @chan;
            }

            p {
                text-align: center;
                color: @xiao;
            }
        }
    }
}

//产品模块
.product {
    &-title {
        padding-top: 15px;
        height: 105px;
        line-height: 105px;
        text-align: center;
        font-size: 25px;
    }

    &-two {
        li {
            position: relative;
            float: left;
            padding: 30px 0;
            width: 605px;
            margin: 10px 0;
            text-align: center;
            margin-right: 10px;
            background-color: #fff;

            &:nth-child(2) {
                margin-right: 0;
            }

            a {
                h2 {
                    font-size: 30px;
                    color: @chan1;
                }

                p {
                    font-size: 23px;
                }

                div {
                    font-size: 15px;
                    color: red;

                    span {
                        font-size: 10px;
                    }
                }

                img {
                    display: block;
                    margin: 0 auto;
                    margin-top: -20px;
                    width: 70%;
                }
            }

            .product-yi {
                position: absolute;
                top: 10px;
                left: 45px;
                width: 60px;
                height: 60px;
                line-height: 60px;
                font-size: 14px;
                color: #fff;
                border-radius: 50%;
                text-align: center;
                background: linear-gradient(120deg, red, pink);
            }

            .product-er {
                position: absolute;
                top: 10px;
                left: 45px;
                width: 60px;
                height: 60px;
                line-height: 60px;
                font-size: 14px;
                color: #fff;
                border-radius: 50%;
                text-align: center;
                background: linear-gradient(120deg, rgb(47, 0, 255), rgb(192, 255, 203));
            }
        }
    }

    &-list {
        overflow: hidden;

        li {
            position: relative;
            float: left;
            width: 24%;
            margin-right: 10px;
            margin-bottom: 10px;
            text-align: center;
            background-color: #fff;

            &:nth-child(4) {
                margin-right: 0;
            }

            a {
                display: block;
                width: 100%;
                height: 100%;

                img {
                    padding-top: 20px;
                    width: 70%;
                }

                h3 {
                    line-height: 28px;
                    color: @chan1;
                    font-size: 16px;
                }

                p {
                    color: @xiao;
                    font-size: 10px;
                }

                div {
                    font-size: 18px;
                    color: red;

                    span {
                        font-size: 12px;
                    }
                }
            }

            .product-one {
                position: absolute;
                top: 10px;
                left: 45px;
                width: 60px;
                height: 60px;
                line-height: 60px;
                font-size: 14px;
                color: #fff;
                border-radius: 50%;
                text-align: center;
                background: linear-gradient(120deg, red, pink);
            }

            i {
                position: absolute;
                top: 10px;
                left: 45px;
                width: 60px;
                height: 60px;
                line-height: 60px;
                font-size: 15px;
                color: #fff;
                border-radius: 50%;
                text-align: center;
                background: linear-gradient(120deg, #ff9c15, #ffc731);
            }
        }
    }

    &-big {
        margin-bottom: 10px;
    }

    .sound {
        li {
            height: 375px;

            a {
                div {
                    .smil {
                        padding-left: 7px;
                        font-size: 14px;
                        color: @chan;
                        text-decoration: line-through;
                    }
                }
            }

            &:nth-child(4n+1) {

                a {
                    position: relative;
                    padding: 0;

                    img {
                        padding: 0;
                        height: 100%;
                        width: 100%;
                        vertical-align: middle;
                    }

                    >div {
                        position: absolute;
                        bottom: 10px;
                        width: 100%;

                        h3 {
                            color: #fff;
                            font-size: 20px;
                        }

                        p {
                            color: @xiao;
                        }

                        div {
                            font-size: 19px;
                            color: @caidan;
                            font-weight: 700;

                            span {
                                font-size: 19px;
                            }
                        }

                    }
                }
            }
        }
    }

    .discuss {
        li {
            a {
                padding: 0;

                img {
                    padding: 0;
                    width: 100%;
                }

                .avatar {
                    padding: 10px 15px;
                    text-align: left;

                    img {
                        display: inline-block;
                        width: 40px;
                        height: 40px;
                        margin-right: 15px;
                        border-radius: 50%;
                        background-color: red;
                    }

                    span {
                        color: @xiao;
                    }
                }

                p {
                    height: 90px;
                    line-height: 30px;
                    font-size: 15px;
                    text-align: left;
                    padding: 0 13px;
                    color: @chan1;
                }

                .bak {
                    font-size: 10px;
                    text-align: left;
                    padding: 0 13px;
                    color: @chan;
                    margin-bottom: 30px;
                }
            }
        }
    }
}

//flyme
.flyme {
    overflow: hidden;

    &-title {
        height: 90px;
        line-height: 90px;
        text-align: center;
        font-size: 25px;
    }

    ul {
        &.flyme-big {
            li {
                &:first-child {
                    width: 610px;
                }

                &:nth-child(4n) {
                    margin-right: 10px;
                }

                &:nth-child(3n) {
                    margin-right: 0;
                }

                &:last-child {
                    margin-left: 10px;
                }
            }
        }

        li {
            background-color: #fff;
            float: left;
            width: 300px;
            margin-right: 10px;
            margin-bottom: 10px;

            &:nth-child(4n) {
                margin-right: 0;
            }

            a {
                position: relative;
                display: block;
                width: 100%;
                height: 100%;

                img {
                    display: block;
                    width: 100%;
                }

                p {
                    height: 55px;
                    line-height: 55px;
                    text-align: center;

                }

                i {
                    position: absolute;
                    bottom: 60px;
                    right: 5px;
                    font-size: 40px;
                    color: #fff;
                }
            }
        }
    }
}

//footer
footer {
    margin-top: 60px;
    background: #fff;

    .icons {
        overflow: hidden;

        ul {
            height: 180px;
            float: left;
            display: flex;
            align-items: center;

            li {
                flex: 1;
                margin-right: 35px;

                a {
                    img {}

                    p {
                        text-align: center;
                    }
                }
            }
        }

        .hotline {
            float: right;
            height: 180px;
            line-height: 30px;
            padding-top: 40px;

            p {
                width: 180px;
                height: 30px;
                text-align: center;
            }

            .cc {
                width: 180px;
                height: 30px;
                text-align: center;
            }

            a {
                display: block;
                width: 180px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                border-radius: 30px;
                font-size: 20px;
                color: #fff;
                background-color: rgb(10, 118, 133);
            }
        }
    }
}